package testDemo9;

public class test {
    public static int add(int a, int b) {
        return a + b;
    }

    public static double add(double a, double b) {
        return a + b;
    }

    public static void main(String[] args) {
        int a = 1;
        int b = 2;
        System.out.println(add(a, b));
        double c = 6.5;
        double d = 8.4;
        System.out.println(add(c, d));
    }
}

